#!/bin/sh

if [ "$#" -ne 1 ]
then
	echo "requires a script"
	exit
fi

dependencies=$(head -n 1 "$1" | sed -ne 's/;; import //p')

echo "## program: $1"
scheme -q shim.scm $dependencies "$1" exit.scm
echo
echo

